
import { createRouter,createWebHistory,RouteRecordRaw } from "vue-router";

const routes:Array<RouteRecordRaw>=[
    {
        path:"/",
        name:"HelloWorld",
        component:()=>import("../components/HelloWorld.vue")
    },
    {
        path:"/AddWorld",
        name:"AddWorld",
        component:()=>import("../components/AddWorld.vue")
    },
    {
        path:"/ShowWorld",
        name:"ShowWorld",
        component:()=>import("../components/ShowWorld.vue")
    },
    {
        path:"/EnitWorld/:id",
        name:"EnitWorld",
        component:()=>import("../components/EnitWorld.vue")
    },
]

const router=createRouter({
    history:createWebHistory(),
    routes
})
export default router